<template>
	<view class="home">
		<view class="boxfla" @click="zhongduanFn">
			<view class="img">

				<image class="imgww" src="/static/shezhi.png" mode=""></image>
			</view>
			<view class="flzx">
				设置终端参数
			</view>
			<view class="tion">
				<u-icon name="arrow-right" color="#a6a6a6" size="28"></u-icon>
			</view>
		</view>
		<view class="boxfla" @click="realTimeDataFn">
			<view class="img">

				<image class="imgww" src="/static/shiyongshuom.png" mode=""></image>
			</view>
			<view class="flzx">
				接收实时数据
			</view>
			<view class="tion">
				<u-icon name="arrow-right" color="#a6a6a6" size="28"></u-icon>
			</view>
		</view>
		<view class="boxfla" @click="configtionTimeFn">
			<view class="img">

				<image class="imgww" src="/static/lianxi.png" mode=""></image>
			</view>
			<view class="flzx">
				下载历史记录
			</view>
			<view class="tion">
				<u-icon name="arrow-right" color="#a6a6a6" size="28"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		onLoad(option) {
			
		},
		methods: {
			zhongduanFn(){
				// uni.navigateTo({
				// 	url: '/pages/index/setUp'
				// });
				uni.navigateTo({
					url: '/pages/index/setNetwork'
				});
			},
			realTimeDataFn(){
				uni.navigateTo({
					url: '/pages/index/obtainRainfall'
				});
			},
			// 测试
			configtionTimeFn(){
				// uni.navigateTo({
				// 	url: '/pages/index/configurationTime'
				// });
				// uni.navigateTo({
				// 	url: '/pages/statistics/test'
				// });
			}

		}
	}
</script>
<style scoped lang="scss">
	.home {
		.boxfla {
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin: 30rpx;
			padding: 30rpx;
			font-size: 50rpx;
			border-radius: 30rpx;
			color: #000000;
			background-color: #ffffff;

			.img {
				flex: 1;
				.imgww {
					width: 80rpx;
					height: 80rpx;
				}
			}

			.flzx {
				flex: 4;
				text-align: center;
			}
			.tion {
				width: 100rpx;
				display: flex;
				align-items: center;
				justify-content: flex-end;
			}

		}
	}
</style>
<style>
	page {
		background-color: #f2f1f6;
	}
</style>